package com.skywolf.chem.usercenter.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.skywolf.chem.usercenter.entity.Role;
import com.skywolf.chem.usercenter.pojo.param.RoleCreateParam;
import com.skywolf.chem.usercenter.pojo.param.RoleQueryParam;
import com.skywolf.chem.usercenter.pojo.param.RoleUpdateParam;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author
 * @since 2019-12-02
 */
public interface IRoleService extends IService<Role> {

    Long createRole(RoleCreateParam roleCreateParam);

    void deleteRole(Long id);

    Role getRole(Long id);

    void updateRole(RoleUpdateParam roleUpdateParam);

    List<Role> listAllRoles();

    boolean hasRole(Long roleId);

    IPage<Role> pageList(RoleQueryParam roleQueryParam);
}
